package com.rongc.client.freight.business.waybill.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.rongc.client.core.network.api.AbsRequest;
import com.rongc.client.core.network.params.BaseParams;
import com.rongc.client.freight.ApiUrl;
import com.rongc.client.freight.UniApplication;

import org.json.JSONObject;


/*
*  发起支付(钱包)
* */

public class WaybillPayQianbaoApi extends AbsRequest<WaybillPayQianbaoApi.WaybillPayQianbaoParams, JSONObject> {

    public WaybillPayQianbaoApi(WaybillPayQianbaoParams feedbackParams, Listener<JSONObject> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getQianbaoUrl(), feedbackParams, listener, errorListener, JSONObject.class);
    }

    public static class WaybillPayQianbaoParams extends BaseParams {

        public WaybillPayQianbaoParams(String type,String id,String pwd) {
            put("type",type);
            put("id",id);
            put("uid", UniApplication.getInstance().getUserInfo().getUserId());
            put("zhifu_pwd",pwd);
        }

    }


}
